package cn.mafangui.hotel.mapper;

import cn.mafangui.hotel.entity.Dishes;
import cn.mafangui.hotel.entity.DishesManager;
import cn.mafangui.hotel.entity.Notice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author ：Angular
 * @ProjectName: hotel
 * @Package: cn.mafangui.hotel.mapper
 * @InterfaceName: NoticeMapper
 * @date ：Created in 2021/4/24 12:31
 * @description：
 * @modified By：
 * @version: $
 */
@Component
public interface DishesManagerMapper {
    int deleteByPrimaryKey(Integer dishId);

    int insert(DishesManager notice);

    int insertSelective(DishesManager notice);

    DishesManager selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(DishesManager record);

    int updateByPrimaryKey(DishesManager record);

    List<DishesManager> selectAll();

    List<DishesManager> selectByUserId(Integer userId);

    List<DishesManager> selectAllByUser(@Param("userId") Integer userId, @Param("orderStatus") Integer orderStatus);

    Integer getDishesCount();

    boolean updatePay(Integer id, String pay);
}
